package com.jumi.microservice.dto.logistics.excel;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author by mazhao
 * @Classname AddLogisticsPackageRequest
 * @Description TODO
 * @Date 2020/8/6 9:22
 */
@ContentRowHeight(20)
@ColumnWidth(12)
public class ExcelSpiltMerge implements Serializable {
    @ExcelProperty("包裹号")
    @ApiModelProperty("包裹号")
    private String a;
    @ExcelProperty("商品ID")
    @ApiModelProperty("商品ID")
    private String b;
    @ExcelProperty("商品名称")
    @ApiModelProperty("商品名称")
    private String c;
    @ExcelProperty("订单编号")
    @ColumnWidth(25)
    private String d;
    @ExcelProperty("发货仓")
    private String e;
    @ExcelProperty("商品数量")
    @ColumnWidth(5)
    private String f;
    @ExcelProperty("物料类型")
    private String g;
    @ExcelProperty("总重量")
    private String h;
    @ExcelProperty("拆合规则")
    @ColumnWidth(5)
    private String i;
    @ExcelProperty("最大数量")
    @ColumnWidth(5)
    private String j;
    @ExcelProperty("单独发货")
    @ColumnWidth(5)
    private String k;
//    @ExcelProperty("组合商品")
//    @ColumnWidth(5)
//    private String l;
    @ExcelProperty("收货人姓名")
    private String m;
    @ExcelProperty("收货人号码")
    private String n;
    @ExcelProperty("收货地址")
    @ColumnWidth(60)
    private String o;
    @ExcelProperty("商品拆分")
    @ColumnWidth(5)
    private String p;
    @ExcelProperty("唯一标识")
    @ColumnWidth(5)
    private String q;

    private String r;

    public String getR() {
        return r;
    }

    public void setR(String r) {
        this.r = r;
    }

    public String getQ() {
        return q;
    }

    public void setQ(String q) {
        this.q = q;
    }

    public String getP() {
        return p;
    }

    public void setP(String p) {
        this.p = p;
    }

    public String getO() {
        return o;
    }

    public void setO(String o) {
        this.o = o;
    }

    public String getN() {
        return n;
    }

    public void setN(String n) {
        this.n = n;
    }

//    public String getL() {
//        return l;
//    }
//
//    public void setL(String l) {
//        this.l = l;
//    }

    public String getM() {
        return m;
    }

    public void setM(String m) {
        this.m = m;
    }

    public String getK() {
        return k;
    }

    public void setK(String k) {
        this.k = k;
    }

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    public String getD() {
        return d;
    }

    public void setD(String d) {
        this.d = d;
    }

    public String getE() {
        return e;
    }

    public void setE(String e) {
        this.e = e;
    }

    public String getF() {
        return f;
    }

    public void setF(String f) {
        this.f = f;
    }

    public String getG() {
        return g;
    }

    public void setG(String g) {
        this.g = g;
    }

    public String getH() {
        return h;
    }

    public void setH(String h) {
        this.h = h;
    }

    public String getI() {
        return i;
    }

    public void setI(String i) {
        this.i = i;
    }

    public String getJ() {
        return j;
    }

    public void setJ(String j) {
        this.j = j;
    }

    @Override
    public boolean equals(Object o1) {
        if (this == o1) {return true;}
        if (o1 == null || getClass() != o1.getClass()) {return false;}
        ExcelSpiltMerge that = (ExcelSpiltMerge) o1;
        return Objects.equals(b, that.b) &&
                Objects.equals(c, that.c) &&
                Objects.equals(d, that.d) &&
                Objects.equals(e, that.e) &&
                Objects.equals(g, that.g) &&
//                Objects.equals(l, that.l) &&
                Objects.equals(m, that.m);
    }
}
